package com.hayrullah.cinema.entity;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "Ticket_Table")
public class Ticket extends AbstractEntity {


	private static final long serialVersionUID = 1L;

	
	private Customer customer;
	private Saloon saloon;
	private Seans seans;
	private Seats seats;
	@OneToOne(targetEntity = Ticket.class, mappedBy = "ticket")
	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	@OneToOne(targetEntity = Saloon.class, mappedBy = "ticket")
	public Saloon getSaloon() {
		return saloon;
	}

	public void setSaloon(Saloon saloon) {
		this.saloon = saloon;
	}


	public Seans getSeans() {
		return seans;
	}

	public void setSeans(Seans seans) {
		this.seans = seans;
	}
	public Seats getSeats() {
		return seats;
	}

	public void setSeats(Seats seats) {
		this.seats = seats;
	}
	

}
